#ifndef CLOCK_HPP
#define CLOCK_HPP
#include <iomanip>
#include <iostream>

class NumberDispaly {
   private:
    const int limit;  // 用于进位，对于分钟，limit为60
    int value;

   public:
    NumberDispaly() = default;
    NumberDispaly(int, int = 0);
    bool increse();  // return的bool可以用来反馈是否进位了
    void print();
};

class ClockDisplay {
   private:
    NumberDispaly hour;
    NumberDispaly minute;

   public:
    ClockDisplay();
    ClockDisplay(int hour, int minute);
    void increse();
    void print();
};

#endif
